import styles from './explain.less';
import { history, useIntl } from 'umi';
import { Button, Table } from 'antd';
import request from '@/utils/request';

const CampaignsPage = function (props: any) {
  const intl = useIntl();

  const onCreate = () => {
    typeof props.oncreate === 'function' && props.oncreate();
  };

  return (
    <div className={styles.CampaignsExplain}>
      <div className={styles.ceTitle}>
        {intl.formatMessage({ id: 'rosternodata2_title' })}
      </div>
      <div className={styles.ceSubTitle}>
        {intl.formatMessage({ id: 'rosternodata2_subtitle' })}
      </div>
      <Button type="primary" onClick={onCreate}>
        {intl.formatMessage({ id: 'contacts' })}
      </Button>
    </div>
  );
};

CampaignsPage.title = '营销群发讯息';

export default CampaignsPage;
